package cn.zzuli.myfirstapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class SkipActivity extends AppCompatActivity {
    private Button myBtn_one;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        myBtn_one=(Button) findViewById(R.id.btn_one);
        myBtn_one.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent it=new Intent();
                it.setClass(SkipActivity.this, MainActivity.class);
                startActivity(it);
            }
        });
    }
}